import { CommandOptions } from 'element/share/command'
import { PEElement, register } from 'element/share/element'

import PETextElementCommand from './command.json'
import PETextElementGlobalCSS from '-!to-string-loader!postcss-loader!sass-loader!./global.scss'

export default class PETextElement extends PEElement {
  static nodeName = 'pe-text'

  static GLOBAL_CSS = PETextElementGlobalCSS

  constructor() {
    super()
    this.command.options = PETextElementCommand as CommandOptions
  }
}

register(PETextElement, ['#text'])
